﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YdWorkFlow.Core.Interface
{
    /// <summary>
    /// 流转类型 0系统控制 1单选一个分支流转 2多选几个分支流转
    /// </summary>
    public enum EFlowType { system = 0, single = 1, multi = 2 }
    /// <summary>
    /// 退回策略 0不能退回 1单个退回 2全部退回
    /// </summary>
    public enum EBackModel { no = 0, single = 1, all = 2 }
    /// <summary>
    /// 处理策略 0所有人必须处理 1一人同意即可 2依据人数比例 3独立处理
    /// </summary>
    public enum EHanlderModel { all = 0, one = 1, percent = 2 }
    /// <summary>
    /// 会签策略 0 不会签 1 所有步骤同意 2 一个步骤同意即可 3 依据比例
    /// </summary>
    public enum ECountersignature { all = 0, one = 1, percent = 2 }
    /// <summary>
    /// 子流程处理策略 0 子流程完成后才能提交 1 子流程发起即可提交
    /// </summary>
    public enum ESubFlowStrategy { done = 0, start = 1 }
    /// <summary>
    /// 对表单的操作权限
    /// </summary>
    public enum EFormPower { read = 0, rwrite = 1 }

    public enum ParameterPurpose
    {
        Temporary, Persistence, System
    }

    public enum ActorType { Role = 0, Identity = 1,Job=2 }

    public enum buttonState { Enable = 0, Disable = 1 }

    public enum formState { read = 0, write = 1 }

    public enum EActivityType { normal = 0, subflow = 1, start = 2, final = 3 }
}
